<?php
namespace app\controller;

use think\Request;

class Notice
{
    public function getList(Request $request)
    {
        // 这里是获取通知列表的业务逻辑
        $page = $request->param('page', 1);
        $limit = $request->param('limit', 10);
        
        // 示例返回数据
        return json([
            'code' => 200,
            'message' => 'success',
            'data' => [
                'total' => 20,
                'items' => [
                    ['id' => 1, 'title' => '模拟数据1'],
                    ['id' => 2, 'title' => '模拟数据2']
                ]
            ]
        ]);
    }
}